﻿<phone:PhoneApplicationPage 
    x:Class="SpeedRun.History"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="CornflowerBlue"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    xmlns:toolkit ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded">
        <ScrollViewer>
            <toolkit:WrapPanel x:Name="wrapPanel" >

            </toolkit:WrapPanel>
        </ScrollViewer>
        <Grid Visibility="Collapsed" x:Name="historyFull" Background="Black" >
            <ScrollViewer>
                <Grid>
                    <Border BorderThickness="2" BorderBrush="Wheat">
                        <StackPanel>
                            <Border BorderThickness="2" BorderBrush="Wheat">
                                <TextBlock x:Name="historyTime" Text="00:00:00" TextAlignment="Center" FontSize="65" />
                            </Border>
                            <Border BorderThickness="2" BorderBrush="Wheat">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Type" Width="140" />
                                    <TextBlock Text="Distance" Width="140" />
                                    <TextBlock Text="Cal"  Width="140"/>
                                </StackPanel>
                            </Border>
                            <Border BorderThickness="2" BorderBrush="Wheat">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Type of Run" x:Name="historyType" Width="140" />
                                    <TextBlock Text="0 meters" x:Name="historyDistance" Width="140"/>
                                    <TextBlock Text="0 KCalories" x:Name="historyCal" Width="140"/>
                                </StackPanel>
                            </Border>
                            <Border BorderThickness="2" BorderBrush="Wheat">
                                <TextBlock x:Name="HistortTimeStamp" Text="Last Workout : None" FontSize="25" />
                            </Border>
                            <Border BorderThickness="2" BorderBrush="Wheat">
                                <TextBlock x:Name="total" Text="Total Runs: None" />
                            </Border>   
                            <Button Content="Share" Click="Button_Click" />
                            <Button Content="View on Map" Click="Button_Click_1"/>
                            <Button Content="Rate the Run!" Click="Button_Click_2"/>
                            <TextBlock Text="Notes:" />
                            <TextBox x:Name="Notes" Height="200" />
                            <StackPanel Orientation="Horizontal">
                                <Button Content="Save" Click="Button_Click_3" Width="240"/>
                                <Button Content="Cancel" Click="Button_Click_4" Width="240" />
                            </StackPanel>
                            <Button Content="Delete this Run" Click="Button_Click_5" >
                                
                            </Button>
                        </StackPanel>
                    </Border>
                </Grid>
            </ScrollViewer>
        </Grid>
    </Grid>
    
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
